#include <iostream>
#include <string>
using namespace std;
class Tdata
{
public:
	Tdata(const char *s)
	{
		cout<<"construct "<<s<<endl;
		tdata = 1;
	}
	void showData(void)
	{
		cout<<tdata<<endl;
	}
	void conmmon(void)
	{
		cout<<"Tdata"<<endl;
	}
	
private:
	int tdata;
};

class Ttime
{
public:
	Ttime(const char *s)
	{
		cout<<"construct "<<s<<endl;
		ttime=2;
	}
	void showTime(void)
	{
		cout<<ttime<<endl;
	}
	void conmmon(void)
	{
		cout<<"Ttime"<<endl;
	}
	
private:
	int ttime;
};

class TdataTime:public Tdata, public Ttime
{
public:
	TdataTime(const char *s):Tdata("riqi"),Ttime("shijian")
	{
		cout<<"construct "<<s<<endl;
		tDataTime = 3;
	}
	void showTdataTime(void)
	{
		cout<<tDataTime<<endl;
	}
	void conmmon(void)
	{
		cout<<"TdataTime"<<endl;
	}
	
private:
	int tDataTime;
};

int main()
{
   cout << "Hello World"<<endl;
	
	TdataTime obj("init obj");
	obj.showTdataTime();
	obj.showData();
	obj.showTime();
	
	obj.conmmon();
	obj.Ttime::conmmon();
   return 0;
}